import axios from "axios";
import qs from "qs";
import rootApi from "../../routerUrl";
const root = rootApi.gmcApiUrl;
const url = {
  //集团资料
  Company: `${root}/Company`, // 集团资料->获取集团资料
  updateCompanyAction: `${root}/Company/updateCompanyAction`, // 集团资料->编辑集团资料

  //集团相关设置
  getMessageTypeList: `${root}/Company/getMessageTypeList`, // 集团相关设置->消息类型列表
  addMessagetypeAction: `${root}/Company/addMessagetypeAction`, // 集团相关设置->添加消息类型
  updateMessagetypeAction: `${root}/Company/updateMessagetypeAction`, // 集团相关设置->添加消息类型
  delMessagetypeAction: `${root}/Company/delMessagetypeAction`, // 集团相关设置->删除消息类型

  ChangeMessageTypeStatusAction: `${root}/Company/ChangeMessageTypeStatusAction`, // 集团相关设置->改变消息类型是否启用
  addApppropermisAction: `${root}/Company/addApppropermisAction`, // 集团相关设置->添加集团商务产品
  updateApppropermisAction: `${root}/Company/updateApppropermisAction`, // 集团相关设置->编辑集团商务产品
  delApppropermisAction: `${root}/Company/delApppropermisAction`, // 集团相关设置->删除集团商务产品

  getApppropermisList: `${root}/Company/getApppropermisList`, // 集团相关设置->集团商务产品列表
  getCompaniesList: `${root}/Company/getCompaniesList`, // 集团相关设置->企业主体信息管理列表
  addCompaniesAction: `${root}/Company/addCompaniesAction`, // 集团相关设置->添加企业信息
  updateCompaniesAction: `${root}/Company/updateCompaniesAction`, // 集团相关设置->编辑企业信息
  delCompaniesAction: `${root}/Company/delCompaniesAction`, // 集团相关设置->删除企业信息

  //人事相关设置
  Post: `${root}/Post`, // 人事相关设置->职务列表
  addPostAction: `${root}/Post/addPostAction`, // 人事相关设置->添加职务
  updatePostAction: `${root}/Post/updatePostAction`, // 人事相关设置->编辑职务
  delPostAction: `${root}/Post/delPostAction`, // 人事相关设置->删除职务

  getPostlevelList: `${root}/Post/getPostlevelList`, // 人事相关设置->职等列表
  addPostlevelAction: `${root}/Post/addPostlevelAction`, // 人事相关设置->添加职等
  updatePostlevelAction: `${root}/Post/updatePostlevelAction`, // 人事相关设置->编辑职等
  delPostlevelAction: `${root}/Post/delPostlevelAction`, // 人事相关设置->删除职等

  getPostroleList: `${root}/Post/getPostroleList`, // 人事相关设置->获取集团角色列表
  addPostroleAction: `${root}/Post/addPostroleAction`, // 人事相关设置->添加集团角色
  updatePostroleAction: `${root}/Post/updatePostroleAction`, // 人事相关设置->编辑集团角色
  delPostroleAction: `${root}/Post/delPostroleAction`, // 人事相关设置->删除集团角色

  getPostpartList: `${root}/Post/getPostpartList`, // 人事相关设置->获取园务角色列表
  addPostPartAction: `${root}/Post/addPostPartAction`, // 人事相关设置->添加校园角色
  updatePostpartAction: `${root}/Post/updatePostpartAction`, // 人事相关设置->编辑校园角色
  delPostpartAction: `${root}/Post/delPostpartAction`, // 人事相关设置->删除校园角色

  getTeachtypeList: `${root}/Post/getTeachtypeList`, // 人事相关设置->获取教师类型列表
  addTeachtypeAction: `${root}/Post/addTeachtypeAction`, // 人事相关设置->添加教师类型
  updateTeachtypeAction: `${root}/Post/updateTeachtypeAction`, // 人事相关设置->编辑教师类型
  delTeachtypeAction: `${root}/Post/delTeachtypeAction`, // 人事相关设置->删除教师类型

  //招生相关设置
  Crm: `${root}/Crm`, // 招生相关设置->获取沟通方式列表
  addCommodeAction: `${root}/Crm/addCommodeAction`, // 招生相关设置->添加沟通方式
  updateCommodeAction: `${root}/Crm/updateCommodeAction`, // 招生相关设置->编辑沟通方式
  delCommodeAction: `${root}/Crm/delCommodeAction`, // 招生相关设置->删除沟通方式

  getTracenoteList: `${root}/Crm/getTracenoteList`, // 招生相关设置->获取用户跟踪内容模板列表
  addTracenoteAction: `${root}/Crm/addTracenoteAction`, // 招生相关设置->添加用户跟踪内容模板
  updateTracenoteAction: `${root}/Crm/updateTracenoteAction`, // 招生相关设置->编辑用户跟踪内容模板
  delTracenoteAction: `${root}/Crm/delTracenoteAction`, // 招生相关设置->删除用户跟踪内容模板

  getClientTypeList: `${root}/Crm/getClientTypeList`, // 招生相关设置->获取名单类型列表 -- wgh
  addClientTypeAction: `${root}/Crm/addClientTypeAction`, // 招生相关设置->添加名单类型 -- wgh
  updateClientTypeAction: `${root}/Crm/updateClientTypeAction`, // 招生相关设置->编辑名单类型 -- wgh
  delClientTypeAction: `${root}/Crm/delClientTypeAction`, // 招生相关设置->删除名单类型 -- wgh

  //操作日志
  getComWorkLog: `${root}/Company/getComWorkLog`, // 招生相关设置->集团操作日志
  getCrmWorkLog: `${root}/Company/getCrmWorkLog`, // 招生相关设置->CRM操作日志
  getScWorkLog: `${root}/Company/getScWorkLog`, // 招生相关设置->校务操作日志

  //园务相关设置
  getStuchangeReasonList: `${root}/School/getStuchangeReasonList`, // 异动原因管理->获取幼儿异动原因列表
  addStuchangeReasonAction: `${root}/School/addStuchangeReasonAction`, // 异动原因管理->添加异动原因
  updateStuchangeReasonAction: `${root}/School/updateStuchangeReasonAction`, // 异动原因管理->编辑异动原因
  delStuchangeReasonAction: `${root}/School/delStuchangeReasonAction`, // 异动原因管理->删除异动原因
  getFoodtypeList: `${root}/School/getFoodtypeList`, // 园所相关设置->获取食物分类列表--qyh
  delFoodtypeAction: `${root}/School/delFoodtypeAction`, //园所相关设置->删除食物分类--qyh
  addFoodtypeAction: `${root}/School/addFoodtypeAction`, //园所相关设置->新增食物分类--qyh
  updateFoodtypeAction: `${root}/School/updateFoodtypeAction`, //园所相关设置->编辑食物分类--qyh
  getFoodList: `${root}/School/getFoodList`, //园所相关设置->获取菜肴列表--qyh
  addFoodAction: `${root}/School/addFoodAction`, // 园所相关设置->添加菜肴--qyh
  updateFoodAction: `${root}/School/updateFoodAction`, //园所相关设置->编辑菜肴--qyh
  delFoodAction: `${root}/School/delFoodAction`, // 园所相关设置->删除菜肴--qyh
  getFoodOneApi: `${root}/School/getFoodOneApi`, // 园务相关设置->查看菜肴详情
  getFoodSchoolList: `${root}/School/getFoodSchoolList`, // 园所相关设置->菜肴适配园所列表--qyh
  addFoodSchoolAction: `${root}/School/addFoodSchoolAction`, //园所相关设置->添加适配园所-qyh
  delFoodSchoolAction: `${root}/School/delFoodSchoolAction`, //园所相关设置->删除适配园所-qyh
  ChangeFoodStatusAction: `${root}/School/ChangeFoodStatusAction`, //园务相关设置->改变菜肴启用状态

  getHobbytypeList: `${root}/School/getHobbytypeList`, // 园务相关设置->兴趣课类型列表
  getHobbyitemList: `${root}/School/getHobbyitemList`, // 园务相关设置->兴趣课明细列表
  addHobbytypeAction: `${root}/School/addHobbytypeAction`, // 园务相关设置->添加兴趣课类型
  delHobbytypeAction: `${root}/School/delHobbytypeAction`, // 园务相关设置->删除兴趣课类型
  updateHobbytypeAction: `${root}/School/updateHobbytypeAction`, // 园务相关设置->编辑兴趣课类型
  addHobbyitemAction: `${root}/School/addHobbyitemAction`, // 园务相关设置->添加兴趣班类型
  updateHobbyitemAction: `${root}/School/updateHobbyitemAction`, // 园务相关设置->编辑兴趣班明细
  delHobbyitemAction: `${root}/School/delHobbyitemAction`, // 园务相关设置->删除兴趣班明细

  getIsvisitreasonList: `${root}/School/getIsvisitreasonList`, // 园务相关设置->兴趣课类型列表
  addIsvisitreasonAction: `${root}/School/addIsvisitreasonAction`, // 园务相关设置->添加兴趣课类型
  updateIsvisitreasonAction: `${root}/School/updateIsvisitreasonAction`, // 园务相关设置->删除兴趣课类型
  delIsvisitreasonAction: `${root}/School/delIsvisitreasonAction`, // 园务相关设置->编辑兴趣课类型

  //库存相关设置
  getProdtypeList: `${root}/Stock/getProdtypeList`, // 集团订购管理->货品类别列表
  updateProdtypeAction: `${root}/Stock/updateProdtypeAction`, // 集团订购管理->编辑货品类别
  addProdtypeAction: `${root}/Stock/addProdtypeAction`, // 集团订购管理->添加货品类别
  delProdtypeAction: `${root}/Stock/delProdtypeAction`, // 集团订购管理->删除货品类别

  getActivityBuyList: `${root}/Stock/getActivityBuyList`, // 集团订购管理->获取采购活动列表
  delActivityBuyAction: `${root}/Stock/delActivityBuyAction`, // 集团订购管理->删除采购活动
  updateActivityBuyAction: `${root}/Stock/updateActivityBuyAction`, // 集团订购管理->调拨商品
  addActivityBuyAction: `${root}/Stock/addActivityBuyAction`, // 集团订购管理->创建采购活动
  getActivityBuyGoodsList: `${root}/Stock/getActivityBuyGoodsList`, // 集团订购管理->调拨商品
  getChooseGoodsList: `${root}/Stock/getChooseGoodsList`, // 集团订购管理->获取活动商品列表
  getActivityBuySchoolList: `${root}/Stock/getActivityBuySchoolList`, // 集团订购管理->获取活动适用园所列表
  addActivityBuyGoodsAction: `${root}/Stock/addActivityBuyGoodsAction`, // 集团订购管理->添加活动商品
  addActivityBuySchoolAction: `${root}/Stock/addActivityBuySchoolAction`, // 集团订购管理->添加活动园所
  delActivityBuyGoodsAction: `${root}/Stock/delActivityBuyGoodsAction`, // 集团订购管理->删除活动商品
  delActivityBuySchoolAction: `${root}/Stock/delActivityBuySchoolAction`, // 集团订购管理->删除活动园所

  // 集团资料设置
  getCompanySettingApi: `${root}/Company/getCompanySettingApi`, // 集团资料->获取集团设置->lujing
  setCompanySettingAction: `${root}/Company/setCompanySettingAction`, // 集团资料->设置集团设置->lujing

  getStuTypesListApi: `${root}/School/getStuTypesListApi`,
  getStuTypesOneApi: `${root}/School/getStuTypesOneApi`,
  addTypesAction: `${root}/School/addTypesAction`,
  editTypesAction: `${root}/School/editTypesAction`,
  delTypesAction: `${root}/School/delTypesAction`,

  // 幼儿叮嘱回复模板
  getWarnTemplateList: `${root}/School/getWarnTemplateList`,
  addWarnTemplateAction: `${root}/School/addWarnTemplateAction`,
  updateWarnTemplateAction: `${root}/School/updateWarnTemplateAction`,
  delWarnTemplateAction: `${root}/School/delWarnTemplateAction`,

  // 助学助教广告位上下架
  getTeKidBannerList: `${root}/School/getTeKidBannerList`,
  getBannerApplyList: `${root}/School/getBannerApplyList`,
  addTeKidBannerAction: `${root}/School/addTeKidBannerAction`,
  updateTeKidBannerAction: `${root}/School/updateTeKidBannerAction`,
  delTeKidBannerAction: `${root}/School/delTeKidBannerAction`,
  updateBannerStatusAction: `${root}/School/updateBannerStatusAction`,

  addFeetypeAction: `${root}/School/addFeetypeAction`,
  updateFeetypeAction: `${root}/School/updateFeetypeAction`,
  delFeetypeAction: `${root}/School/delFeetypeAction`,
  delFeeitemAction: `${root}/School/delFeeitemAction`,

  getFeeitemList: `${root}/School/getFeeitemList`,
  getFeetypeApi: `${root}/School/getFeetypeApi`,
  addFeeitemAction: `${root}/School/addFeeitemAction`,
  updateFeeitemAction: `${root}/School/updateFeeitemAction`,
  updateFeeStatusAction: `${root}/School/updateFeeStatusAction`,

  getLosttypeList: `${root}/School/getLosttypeList`,
  addLosttypeAction: `${root}/School/addLosttypeAction`,
  updateLosttypeAction: `${root}/School/updateLosttypeAction`,
  delLosttypeAction: `${root}/School/delLosttypeAction`,

  labelType: `${root}/Crm/labelType`,
  checkRepeatLabelApi: `${root}/Crm/checkRepeatLabelApi`,
  addLabelTypeAction: `${root}/Crm/addLabelTypeAction`,
  updateLabelTypeAction: `${root}/Crm/updateLabelTypeAction`,
  delLabelTypeAction: `${root}/Crm/delLabelTypeAction`,

  labelSchType: `${root}/School/labelSchType`,
  checkRepeatLabelSchApi: `${root}/School/checkRepeatLabelSchApi`,
  addLabelSchTypeAction: `${root}/School/addLabelSchTypeAction`,
  schoolUpdateLabelTypeAction: `${root}/School/updateLabelTypeAction`,
  delLabelSchTypeAction: `${root}/School/delLabelSchTypeAction`,
  
  intentionLevelList: `${root}/Crm/intentionLevelList`,
  editIntentionLevelAction: `${root}/Crm/editIntentionLevelAction`,
  
  getRefundReasonList: `${root}/School/getRefundReasonList`,
  addRefundReasonAction: `${root}/School/addRefundReasonAction`,
  delRefundReasonAction: `${root}/School/delRefundReasonAction`,
  updateRefundReasonAction: `${root}/School/updateRefundReasonAction`,

};

const setHttp = {
  //集团资料
  getCompany(params) {
    return axios.get(url.Company, {
      params,
    });
  },
  updateCompanyAction(params) {
    return axios.post(url.updateCompanyAction, qs.stringify(params));
  },
  //集团相关设置
  getMessageTypeList(params) {
    return axios.get(url.getMessageTypeList, {
      params,
    });
  },
  getIsvisitreasonList(params) {
    return axios.get(url.getIsvisitreasonList, {
      params,
    });
  },
  addMessagetypeAction(params) {
    return axios.post(url.addMessagetypeAction, qs.stringify(params));
  },
  addIsvisitreasonAction(params) {
    return axios.post(url.addIsvisitreasonAction, qs.stringify(params));
  },
  updateIsvisitreasonAction(params) {
    return axios.post(url.updateIsvisitreasonAction, qs.stringify(params));
  },
  updateMessagetypeAction(params) {
    return axios.post(url.updateMessagetypeAction, qs.stringify(params));
  },
  delMessagetypeAction(params) {
    return axios.post(url.delMessagetypeAction, qs.stringify(params));
  },
  ChangeMessageTypeStatusAction(params) {
    return axios.post(url.ChangeMessageTypeStatusAction, qs.stringify(params));
  },
  delIsvisitreasonAction(params) {
    return axios.post(url.delIsvisitreasonAction, qs.stringify(params));
  },
  addApppropermisAction(params) {
    return axios.post(url.addApppropermisAction, qs.stringify(params));
  },
  updateApppropermisAction(params) {
    return axios.post(url.updateApppropermisAction, qs.stringify(params));
  },
  delApppropermisAction(params) {
    return axios.post(url.delApppropermisAction, qs.stringify(params));
  },
  getApppropermisList(params) {
    return axios.get(url.getApppropermisList, {
      params,
    });
  },
  getCompaniesList(params) {
    return axios.get(url.getCompaniesList, {
      params,
    });
  },
  addCompaniesAction(params) {
    return axios.post(url.addCompaniesAction, qs.stringify(params));
  },
  updateCompaniesAction(params) {
    return axios.post(url.updateCompaniesAction, qs.stringify(params));
  },
  delCompaniesAction(params) {
    return axios.post(url.delCompaniesAction, qs.stringify(params));
  },

  //人事相关设置
  getPost(params) {
    return axios.get(url.Post, {
      params,
    });
  },
  addPostAction(params) {
    return axios.post(url.addPostAction, qs.stringify(params));
  },
  updatePostAction(params) {
    return axios.post(url.updatePostAction, qs.stringify(params));
  },
  delPostAction(params) {
    return axios.post(url.delPostAction, qs.stringify(params));
  },
  getPostlevelList(params) {
    return axios.get(url.getPostlevelList, {
      params,
    });
  },
  addPostlevelAction(params) {
    return axios.post(url.addPostlevelAction, qs.stringify(params));
  },
  updatePostlevelAction(params) {
    return axios.post(url.updatePostlevelAction, qs.stringify(params));
  },
  delPostlevelAction(params) {
    return axios.post(url.delPostlevelAction, qs.stringify(params));
  },
  getPostroleList(params) {
    return axios.get(url.getPostroleList, {
      params,
    });
  },
  addPostroleAction(params) {
    return axios.post(url.addPostroleAction, qs.stringify(params));
  },
  updatePostroleAction(params) {
    return axios.post(url.updatePostroleAction, qs.stringify(params));
  },
  delPostroleAction(params) {
    return axios.post(url.delPostroleAction, qs.stringify(params));
  },
  getPostpartList(params) {
    return axios.get(url.getPostpartList, {
      params,
    });
  },
  addPostPartAction(params) {
    return axios.post(url.addPostPartAction, qs.stringify(params));
  },
  updatePostpartAction(params) {
    return axios.post(url.updatePostpartAction, qs.stringify(params));
  },
  delPostpartAction(params) {
    return axios.post(url.delPostpartAction, qs.stringify(params));
  },
  getTeachtypeList(params) {
    return axios.get(url.getTeachtypeList, {
      params,
    });
  },
  addTeachtypeAction(params) {
    return axios.post(url.addTeachtypeAction, qs.stringify(params));
  },
  updateTeachtypeAction(params) {
    return axios.post(url.updateTeachtypeAction, qs.stringify(params));
  },
  delTeachtypeAction(params) {
    return axios.post(url.delTeachtypeAction, qs.stringify(params));
  },

  //招生相关设置
  getCrm(params) {
    return axios.get(url.Crm, {
      params,
    });
  },
  addCommodeAction(params) {
    return axios.post(url.addCommodeAction, qs.stringify(params));
  },
  updateCommodeAction(params) {
    return axios.post(url.updateCommodeAction, qs.stringify(params));
  },
  delCommodeAction(params) {
    return axios.post(url.delCommodeAction, qs.stringify(params));
  },

  getTracenoteList(params) {
    return axios.get(url.getTracenoteList, {
      params,
    });
  },
  addTracenoteAction(params) {
    return axios.post(url.addTracenoteAction, qs.stringify(params));
  },
  updateTracenoteAction(params) {
    return axios.post(url.updateTracenoteAction, qs.stringify(params));
  },
  delTracenoteAction(params) {
    return axios.post(url.delTracenoteAction, qs.stringify(params));
  },
  // 招生相关设置->获取名单类型列表 -- wgh
  getClientTypeList(params) {
    return axios.get(url.getClientTypeList, {
      params,
    });
  },
  // 招生相关设置->添加名单类型 -- wgh
  addClientTypeAction(params) {
    return axios.post(url.addClientTypeAction, qs.stringify(params));
  },
  // 招生相关设置->编辑名单类型 -- wgh
  updateClientTypeAction(params) {
    return axios.post(url.updateClientTypeAction, qs.stringify(params));
  },
  // 招生相关设置->删除名单类型 -- wgh
  delClientTypeAction(params) {
    return axios.post(url.delClientTypeAction, qs.stringify(params));
  },

  //操作日志
  getComWorkLog(params) {
    return axios.get(url.getComWorkLog, {
      params,
    });
  },
  getCrmWorkLog(params) {
    return axios.get(url.getCrmWorkLog, {
      params,
    });
  },
  getScWorkLog(params) {
    return axios.get(url.getScWorkLog, {
      params,
    });
  },
  //园务相关设置
  getStuchangeReasonList(params) {
    return axios.get(url.getStuchangeReasonList, {
      params,
    });
  },
  // 园所相关设置->获取食物分类列表--qyh
  getFoodtypeList(params) {
    return axios.get(url.getFoodtypeList, {
      params,
    });
  },
  //园所相关设置->获取菜肴列表--qyh
  getFoodList(params) {
    return axios.get(url.getFoodList, {
      params,
    });
  },
  // 园务相关设置->查看菜肴详情
  getFoodOneApi(params) {
    return axios.get(url.getFoodOneApi, {
      params,
    });
  },
  // 园所相关设置->菜肴适配园所列表--qyh
  getFoodSchoolList(params) {
    return axios.get(url.getFoodSchoolList, {
      params,
    });
  },
  addStuchangeReasonAction(params) {
    return axios.post(url.addStuchangeReasonAction, qs.stringify(params));
  },
  updateStuchangeReasonAction(params) {
    return axios.post(url.updateStuchangeReasonAction, qs.stringify(params));
  },
  delStuchangeReasonAction(params) {
    return axios.post(url.delStuchangeReasonAction, qs.stringify(params));
  },
  //园所相关设置->删除食物分类--qyh
  delFoodtypeAction(params) {
    return axios.post(url.delFoodtypeAction, qs.stringify(params));
  },
  //园所相关设置->新增食物分类--qyh
  addFoodtypeAction(params) {
    return axios.post(url.addFoodtypeAction, qs.stringify(params));
  },
  //园所相关设置->编辑食物分类--qyh
  updateFoodtypeAction(params) {
    return axios.post(url.updateFoodtypeAction, qs.stringify(params));
  },
  // 园所相关设置->添加菜肴--qyh
  addFoodAction(params) {
    return axios.post(url.addFoodAction, qs.stringify(params));
  },
  //园所相关设置->编辑菜肴--qyh
  updateFoodAction(params) {
    return axios.post(url.updateFoodAction, qs.stringify(params));
  },
  // 园所相关设置->删除菜肴--qyh
  delFoodAction(params) {
    return axios.post(url.delFoodAction, qs.stringify(params));
  },
  //园所相关设置->添加适配园所-qyh
  addFoodSchoolAction(params) {
    return axios.post(url.addFoodSchoolAction, qs.stringify(params));
  },
  //园所相关设置->删除适配园所-qyh
  delFoodSchoolAction(params) {
    return axios.post(url.delFoodSchoolAction, qs.stringify(params));
  },
  //园务相关设置->改变菜肴启用状态
  ChangeFoodStatusAction(params) {
    return axios.post(url.ChangeFoodStatusAction, qs.stringify(params));
  },

  getHobbytypeList(params) {
    return axios.get(url.getHobbytypeList, {
      params,
    });
  },
  getHobbyitemList(params) {
    return axios.get(url.getHobbyitemList, {
      params,
    });
  },
  addHobbytypeAction(params) {
    return axios.post(url.addHobbytypeAction, qs.stringify(params));
  },
  delHobbytypeAction(params) {
    return axios.post(url.delHobbytypeAction, qs.stringify(params));
  },
  updateHobbytypeAction(params) {
    return axios.post(url.updateHobbytypeAction, qs.stringify(params));
  },

  //库存相关设置
  getProdtypeList(params) {
    return axios.get(url.getProdtypeList, {
      params,
    });
  },
  updateProdtypeAction(params) {
    return axios.post(url.updateProdtypeAction, qs.stringify(params));
  },
  addProdtypeAction(params) {
    return axios.post(url.addProdtypeAction, qs.stringify(params));
  },
  delProdtypeAction(params) {
    return axios.post(url.delProdtypeAction, qs.stringify(params));
  },

  getActivityBuyList(params) {
    return axios.get(url.getActivityBuyList, {
      params,
    });
  },
  delActivityBuyAction(params) {
    return axios.post(url.delActivityBuyAction, qs.stringify(params));
  },
  updateActivityBuyAction(params) {
    return axios.post(url.updateActivityBuyAction, qs.stringify(params));
  },
  addActivityBuyAction(params) {
    return axios.post(url.addActivityBuyAction, qs.stringify(params));
  },
  getActivityBuyGoodsList(params) {
    return axios.get(url.getActivityBuyGoodsList, {
      params,
    });
  },
  getChooseGoodsList(params) {
    return axios.get(url.getChooseGoodsList, {
      params,
    });
  },
  getActivityBuySchoolList(params) {
    return axios.get(url.getActivityBuySchoolList, {
      params,
    });
  },
  addActivityBuyGoodsAction(params) {
    return axios.post(url.addActivityBuyGoodsAction, qs.stringify(params));
  },
  addActivityBuySchoolAction(params) {
    return axios.post(url.addActivityBuySchoolAction, qs.stringify(params));
  },
  delActivityBuyGoodsAction(params) {
    return axios.post(url.delActivityBuyGoodsAction, qs.stringify(params));
  },
  delActivityBuySchoolAction(params) {
    return axios.post(url.delActivityBuySchoolAction, qs.stringify(params));
  },

  // 集团资料设置
  // 集团资料->获取集团设置->lujing
  getCompanySettingApi(params) {
    return axios.get(url.getCompanySettingApi, {
      params,
    });
  },
  // 集团资料->设置集团设置->lujing
  setCompanySettingAction(params) {
    return axios.post(url.setCompanySettingAction, qs.stringify(params));
  },
  addHobbyitemAction(params) {
    return axios.post(url.addHobbyitemAction, qs.stringify(params));
  },
  updateHobbyitemAction(params) {
    return axios.post(url.updateHobbyitemAction, qs.stringify(params));
  },
  delHobbyitemAction(params) {
    return axios.post(url.delHobbyitemAction, qs.stringify(params));
  },

  getStuTypesListApi(params) {
    return axios.get(url.getStuTypesListApi, {
      params,
    });
  },
  getStuTypesOneApi(params) {
    return axios.get(url.getStuTypesOneApi, {
      params,
    });
  },
  addTypesAction(params) {
    return axios.post(url.addTypesAction, qs.stringify(params));
  },
  editTypesAction(params) {
    return axios.post(url.editTypesAction, qs.stringify(params));
  },
  delTypesAction(params) {
    return axios.post(url.delTypesAction, qs.stringify(params));
  },
  getWarnTemplateList(params) {
    return axios.get(url.getWarnTemplateList, {
      params,
    });
  },
  addWarnTemplateAction(params) {
    return axios.post(url.addWarnTemplateAction, qs.stringify(params));
  },
  updateWarnTemplateAction(params) {
    return axios.post(url.updateWarnTemplateAction, qs.stringify(params));
  },
  delWarnTemplateAction(params) {
    return axios.post(url.delWarnTemplateAction, qs.stringify(params));
  },
  getTeKidBannerList(params) {
    return axios.get(url.getTeKidBannerList, {
      params,
    });
  },
  getBannerApplyList(params) {
    return axios.get(url.getBannerApplyList, {
      params,
    });
  },
  addTeKidBannerAction(params) {
    return axios.post(url.addTeKidBannerAction, qs.stringify(params));
  },
  updateTeKidBannerAction(params) {
    return axios.post(url.updateTeKidBannerAction, qs.stringify(params));
  },
  delTeKidBannerAction(params) {
    return axios.post(url.delTeKidBannerAction, qs.stringify(params));
  },
  updateBannerStatusAction(params) {
    return axios.post(url.updateBannerStatusAction, qs.stringify(params));
  },

  getFeeitemList(params) {
    return axios.get(url.getFeeitemList, {
      params,
    });
  },
  getFeetypeApi(params) {
    return axios.get(url.getFeetypeApi, {
      params,
    });
  },
  addFeeitemAction(params) {
    return axios.post(url.addFeeitemAction, qs.stringify(params));
  },
  updateFeeitemAction(params) {
    return axios.post(url.updateFeeitemAction, qs.stringify(params));
  },
  addFeetypeAction(params) {
    return axios.post(url.addFeetypeAction, qs.stringify(params));
  },
  updateFeetypeAction(params) {
    return axios.post(url.updateFeetypeAction, qs.stringify(params));
  },
  delFeetypeAction(params) {
    return axios.post(url.delFeetypeAction, qs.stringify(params));
  },
  delFeeitemAction(params) {
    return axios.post(url.delFeeitemAction, qs.stringify(params));
  },
  updateFeeStatusAction(params) {
    return axios.post(url.updateFeeStatusAction, qs.stringify(params));
  },

  getLosttypeList(params) {
    return axios.get(url.getLosttypeList, {
      params,
    });
  },
  addLosttypeAction(params) {
    return axios.post(url.addLosttypeAction, qs.stringify(params));
  },
  updateLosttypeAction(params) {
    return axios.post(url.updateLosttypeAction, qs.stringify(params));
  },
  delLosttypeAction(params) {
    return axios.post(url.delLosttypeAction, qs.stringify(params));
  },

  labelType(params) {
    return axios.get(url.labelType, {
      params,
    });
  },
  checkRepeatLabelApi(params) {
    return axios.get(url.checkRepeatLabelApi, {
      params,
    });
  },
  addLabelTypeAction(params) {
    return axios.post(url.addLabelTypeAction, qs.stringify(params));
  },
  updateLabelTypeAction(params) {
    return axios.post(url.updateLabelTypeAction, qs.stringify(params));
  },
  delLabelTypeAction(params) {
    return axios.post(url.delLabelTypeAction, qs.stringify(params));
  },

  labelSchType(params) {
    return axios.get(url.labelSchType, {
      params,
    });
  },
  checkRepeatLabelSchApi(params) {
    return axios.get(url.checkRepeatLabelSchApi, {
      params,
    });
  },
  addLabelSchTypeAction(params) {
    return axios.post(url.addLabelSchTypeAction, qs.stringify(params));
  },
  schoolUpdateLabelTypeAction(params) {
    return axios.post(url.schoolUpdateLabelTypeAction, qs.stringify(params));
  },
  delLabelSchTypeAction(params) {
    return axios.post(url.delLabelSchTypeAction, qs.stringify(params));
  },

  intentionLevelList(params) {
    return axios.get(url.intentionLevelList, {
      params,
    });
  },
  editIntentionLevelAction(params) {
    return axios.post(url.editIntentionLevelAction, qs.stringify(params));
  },
  delRefundReasonAction(params) {
    return axios.post(url.delRefundReasonAction, qs.stringify(params));
  },
  addRefundReasonAction(params) {
    return axios.post(url.addRefundReasonAction, qs.stringify(params));
  },
  updateRefundReasonAction(params) {
    return axios.post(url.updateRefundReasonAction, qs.stringify(params));
  },
  getRefundReasonList(params) {
    return axios.get(url.getRefundReasonList, {
      params,
    });
  },
};
export default setHttp;
